#ifndef _ALGORITHM
#define _ALGORITHM
#include "main.h"
LPMAT CreateMatrix(int r, int c, void *d);
void DeleteMatrix(LPMAT mat);
LPMAT MatrixMultiply(LPMAT left, LPMAT right);
LPMAT MatrixAmplify(LPMAT ori, float f);
LPMAT MatrixTranspose(LPMAT ori);
float MatrixDeterminant(LPMAT ori, BOOL* b);
LPMAT MatrixAdjoint(LPMAT ori, BOOL* b);
LPMAT MatrixInverse(LPMAT ori, BOOL*b);
LPMAT MatrixPInv(LPMAT ori);
void PrintMatrix(LPMAT mat);
void TDOALocate(HWND hwnd);
float CalcWindEffect(float x1, float y1, float z1, float x2, float y2, float z2, float speed);
float CalcDistance(float x1, float y1, float z1, float x2, float y2, float z2);
#endif